<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<title>更新商店</title>
<link rel="stylesheet" href="${siteurl}assets/css/www-pkg.css" />
<link rel="stylesheet" href="${siteurl}assets/css/biz_attribute.css" />
[#include "/theme/yelp/common/scripts.html"]
<script src="${siteurl}assets/js/knockout-3.3.0.js"></script>
<script type="text/javascript" src="${siteurl}types.js"></script>

<script type="text/javascript"
	src="http://api.map.baidu.com/api?v=2.0&ak=slXaZk8V8DUWQF2MQnuW4Q5x"></script>


<link rel="stylesheet"
	href="${siteurl}assets/plugs/raty/jquery.raty.css">
<script type="text/javascript"
	src="${siteurl}assets/plugs/raty/jquery.raty.js"></script>

<link rel="stylesheet"
	href="${siteurl}assets/plugs/datetimepicker/jquery.datetimepicker.css" />
<script type="text/javascript"
	src="${siteurl}assets/plugs/datetimepicker/jquery.datetimepicker.js"></script>


<link rel="stylesheet"
	href="${siteurl}assets/plugs/kindeditor/themes/default/default.css" />
<script charset="utf-8"
	src="${siteurl}assets/plugs/kindeditor/kindeditor-min.js"></script>
<script charset="utf-8"
	src="${siteurl}assets/plugs/kindeditor/lang/zh_CN.js"></script>
</head>

<body class="country-hk logged-out ytype jquery" id="yelp_main_body"
	ryt13230="1">

	<div id="fb-root"></div>

	<div class="lang-en" id="wrap">



		[#include "/theme/yelp/common/header.html"]

		<div id="print-masthead">
			<img alt="Yelp" class="print-bkg-img"
				src="http://s3-media2.fl.yelpcdn.com/assets/2/www/img/b7e9d647188d/gfx/header_print.gif">
		</div>

		<span class="offscreen" id="page-content">&nbsp;</span>

		<div class="main-content-wrap main-content-wrap--box">

			<div class="content-container" id="super-container">



				<div id="alert-container"></div>

				<div class="container">
					<div id="update-biz-details"
						class="clearfix layout-block layout-full">
						<div class="column column-alpha ">
							<div class="clearfix claim-promo" style="display: none;">
								<h3>商店帳戶</h3>
								<p>毋須收費，即時顯示你作出的更改</p>
								<a class="ybtn ybtn-primary js-claim-business-button"
									href="https://zh.biz.yelp.com.hk/signup/ENqnflBnTqdhfBsrOpHiKg/account?return_url=http%3A%2F%2Fzh.yelp.com.hk%2Fbiz_attribute%3Fbiz_id%3DENqnflBnTqdhfBsrOpHiKg">開始</a>
							</div>
							<h2>更新商店資料</h2>
							<p>任何對商店資料頁提交的更改必需由Yelp團隊核實。</p>

							<form name="biz_attrib_form" method="POST" id="biz_attrib_form"
								class="biz-attrib-form yform" action="${siteurl}shop/biz_attribute_update.htm">
								<input type="hidden"
									value="${shop.id}"
									class="csrftok" name="shop.id">
								<div class="map-wrapper pull-right">
									<div class="map-container yelp-map-container">
										<div id="allmap" class="engine-container"></div>
									</div>
									<a
										class="i-wrap ig-wrap-common i-distance-marker-common-wrap show-locator-popup pull-right"
										href="javascript:;"><i
										class="i ig-common i-distance-marker-common"></i> 修正錯誤的地圖標記</a>

									<div class="map-popup-container hidden">
										<div class="map-popup-info">
											<p>
												拖曳並將別針放下在正確的地點上。 <br> 使用地圖上的工具放大地圖，查看細節。
											</p>
										</div>
										<div class="popup-map">
											<div id="allmap" class="engine-container"
											style="background-color: rgb(229, 227, 223);"></div>
										</div>
									</div>
									<input type="hidden" id="latlng" name="latlng"> <input
										type="hidden" id="latlng_i" name="latlng_i"> <input
										type="hidden" value="25.041892" id="latitude" name="Latitude">
									<input type="hidden" value="121.555992" id="longitude"
										name="Longitude">
								</div>

								<input type="hidden" value="ENqnflBnTqdhfBsrOpHiKg"
									name="biz_id"> <label>這是否你的商店？</label>
								<fieldset class="is-biz-owner inline-fields">
									<label class="radio-check"> <input type="radio"
										checked="" value="" name="is_business_owner"
										id="noIsBusinessOwner"> <span>不是</span>
									</label> <label class="radio-check"> <input type="radio"
										value="1" name="is_business_owner" id="yesIsBusinessOwner">
										<span>是</span>
									</label>
								</fieldset>
								<div class="island claim-tip" id="js-claim-tip">
									<p>
										<strong>貼士：</strong>解除封鎖你的商店資料頁去立刻分享任何更變。
									</p>
									<a
										class="i-wrap ig-wrap-common i-suitcase-star-common-wrap js-claim-business-alert-link"
										href="https://zh.biz.yelp.com.hk/signup/ENqnflBnTqdhfBsrOpHiKg/account"><i
										class="i ig-common i-suitcase-star-common"></i> 開始探索Yelp商戶專用帳戶</a>
								</div>

								<ul>

									<li class="BusinessName"><label for="attr_BusinessName">商店名稱（中文）</label>

										<span class="placeholder-sub help-block"> ${shop.name!''} </span> <input
										type="text" value="${shop.name!''}" placeholder="${shop.name!''}"
										name="BusinessName" id="attr_BusinessName" class="text">

									</li>



									



									<li class="BusinessZipCode"><label
										for="attr_BusinessZipCode">郵政編碼</label> <input type="text"
										value="106" placeholder="114" name="BusinessZipCode"
										id="attr_BusinessZipCode" class="text"></li>



									<li class="BusinessState"><label for="attr_BusinessState">城市／縣</label>



										<select name="BusinessState" id="attr_BusinessState">
											<option value="TXG">台中市</option>
											<option selected="selected" value="TPE">台北市</option>
											<option value="TTT">台東縣</option>
											<option value="TNN">台南市</option>
											<option value="ILA">宜蘭縣</option>
											<option value="HUA">花蓮縣</option>
											<option value="KNM">金門縣</option>
											<option value="NAN">南投縣</option>
											<option value="PIF">屏東縣</option>
											<option value="MIA">苗栗縣</option>
											<option value="TAO">桃園市</option>
											<option value="KHH">高雄市</option>
											<option value="KEE">基隆市</option>
											<option value="LCH">連江縣</option>
											<option value="YUN">雲林縣</option>
											<option value="TPQ">新北市</option>
											<option value="HSZ">新竹市</option>
											<option value="HSQ">新竹縣</option>
											<option value="CYI">嘉義市</option>
											<option value="CYQ">嘉義縣</option>
											<option value="CHA">彰化縣</option>
											<option value="PEN">澎湖縣</option>
									</select></li>



									<li class="BusinessCity"><label for="attr_BusinessCity">城區／鄉鎮</label>

										<input type="text" value="大安區" placeholder="內湖區"
										name="BusinessCity" id="attr_BusinessCity" class="text">

									</li>




									<li class="BusinessStreetAddress1"><label
										for="attr_BusinessStreetAddress1">地址(中文)</label> <span
										class="placeholder-sub help-block"> 水街7號M大廈 </span> <input
										type="text" value="光復南路200巷5號" placeholder="內湖路一段323巷12號"
										name="BusinessStreetAddress1_zh"
										id="attr_BusinessStreetAddress1_zh" class="text"></li>


									<li class="BusinessStreetAddress2"><label
										for="attr_BusinessStreetAddress2"></label> <span
										class="placeholder-sub help-block"> 25樓B號舖 </span> <input
										type="text" placeholder="1樓" name="BusinessStreetAddress2_zh"
										id="attr_BusinessStreetAddress2_zh" class="text"></li>


									<li class="BusinessAddressAlternate"><label
										for="attr_BusinessAddressAlternate">地址(英文)</label> <span
										class="placeholder-sub help-block"> M Building, 7 Water
											St </span> <input type="text" value=""
										placeholder="No. 12, Lane 323, Section 1, Neihu Rd"
										name="BusinessStreetAddress1_en"></li>


									<li class="BusinessAddressAlternate"><label
										for="attr_BusinessAddressAlternate"></label> <span
										class="placeholder-sub help-block"> Unit B, 25F </span> <input
										type="text" value="" placeholder="1/F"
										name="BusinessStreetAddress2_en"></li>



									<input type="hidden" disabled="" value="TW"
										name="BusinessCountry">

									<li class="BusinessPhoneNumber"><label
										for="attr_BusinessPhoneNumber">電話</label> <span
										class="placeholder-sub help-block"> 2525 6338 </span> <input
										type="text" value="02 27527111" placeholder="2525 6338"
										name="BusinessPhoneNumber" id="attr_BusinessPhoneNumber"
										class="text"></li>





									<li class="BusinessUrl"><label for="attr_BusinessUrl">網址</label>

										<span class="placeholder-sub help-block">
											http://www.companyaddress.com.hk </span> <input type="text"
										placeholder="http://www.companyaddress.com.tw"
										name="BusinessUrl" id="attr_BusinessUrl" class="text">

									</li>


									<li class="MenuUrl"><label for="attr_MenuUrl">網上菜單</label>

										<span class="placeholder-sub help-block">
											http://www.companyaddress.com.hk/menu.html </span> <input
										type="text" placeholder="" name="MenuUrl" id="attr_MenuUrl"
										class="text"></li>


									<li class="BusinessCategoryYelp"><label
										for="attr_BusinessCategoryYelp">分類</label>

											<div class="category-container" data-component-bound="true">
											<div class="category-picker">
												<div class="preselected-categories"></div>
												<div class="new-categories"  data-bind='foreach: lines'>
													<div>
														<select class="category-select"
															data-bind='options: sampleProductCategories, optionsText: "cname", optionsCaption: "选择分类", value: category'>
														</select> 
														
														<span data-bind="with: category"> <select name="ids" class="category-select"
															data-bind='options: childrens , optionsText: "cname",optionsValue:"id" , optionsCaption: "选择分类",value:$root.product'>
														</select>
														</span>
												
														 <span class="read-more remove-category" data-bind='click: $parent.removeLine'>移除</span>
													</div>
												</div>
											</div>
											<a class="add-another-cat link-more" href="#"  data-bind='click: addLine ,visible: lines().length <3'>新增另一分类</a>
										</div> 
									</li>


									<li class="BusinessHours"><label for="attr_BusinessHours">營業時間</label>

										<div id="day-hours-BusinessHours" class="day-hours">
											<div class="hours-display" data-bind="foreach: days">
												<div class="hours">
													<span class="weekday" data-bind="text: weekname"></span><span class="start"  data-bind="text: minname"></span><span>-</span><span
														class="end" data-bind="text: maxname"></span><a href="#" data-bind="click: $root.removeDay" class="remove-hours">移除</a>
														<input data-bind="value:maxindex"
														type="hidden"  name="maxindex">
														<input data-bind="value:minindex"
														type="hidden"  name="minindex">
														<input data-bind="value:weekindex"
														type="hidden"  name="weekindex">
												</div>
												
											</div>
											<ul class="hours-select clearfix inline-layout up-4" data-bind='visible: days().length <7'>
												<li><select class="weekday" id="weekday">
														<option value="0">周一</option>
														<option value="1">周二</option>
														<option value="2">周三</option>
														<option value="3">周四</option>
														<option value="4">周五</option>
														<option value="5">周六</option>
														<option value="6">周日</option>
												</select></li>
												<li><select class="hours-start" id="hours-start">
                                                        [#list mintimes as item]
														<option value="${item.index}">${item.name}</option>
                                                          [/#list]
														
												</select></li>
												<li><select class="hours-end" id="hours-end">
                                                         [#list maxtimes as item]
														<option value="${item.index}">${item.name}</option>
                                                         [/#list]
													
												</select></li>
												<li>
													<button class="ybtn ybtn-small add-hours ytype"
														value="submit" type="button" data-bind="click: addDay">
														<span>增加時段</span>
													</button>
												</li>
											</ul>
										</div></li>

									<li class="business-closed-moved "
										id="js-business-closed-moved"><label class=""> <input
											type="checkbox" id="business-closed-moved-checkbox">
											商店已經關閉或搬遷
									</label>

										<ul class="clearfix hidden">
											<li><label> <input type="radio" class=""
													value="perm_closed" name="biz_closed_moved"
													id="business-perm-closed-option"> 永久關閉
											</label> <input type="hidden" disabled="disabled"
												name="BusinessClosed" id="business-perm-closed-field">

											</li>
											<li><label> <input type="radio" class=""
													value="moved_to" name="biz_closed_moved"
													id="business-moved-option"> 已搬遷至新地點
											</label>

												<div class="hidden" id="business-finder-container">
													<div style="display: none"
														class="island selected-business finder-passport">
														<a href="javascript:"
															class="js-change smaller chooseagain pull-right">更改</a> <strong
															class="autofill-business-name"></strong>
														<div class="autofill-rating rating-small"></div>
														<span class="finder-review-count"></span>
														<address class="autofill-address"></address>
													</div>

													<div class="business_finder clearfix">
														<div
															class="form_container clearfix arrange arrange--stack-small arrange--6">
															<div class="arrange_unit search-biz-name">
																<label class="query_label">商店名稱</label> <input
																	type="text" placeholder="太興，扒王之王" class="text"
																	name="query">
															</div>
															<div class="arrange_unit search-location">
																<label class="location_label">地點</label> <input
																	type="text" placeholder="香港" class="text"
																	name="location">
															</div>
															<div class="arrange_unit submit_container">
																<button
																	class="ybtn ybtn-small searchButton ybtn-full-responsive-small"
																	value="submit" type="submit">
																	<span>搜尋</span>
																</button>
																<span style="display: none;"
																	class="js-loading-animation throbber"></span>
															</div>
														</div>
														<div class="results_container"></div>
													</div>

												</div> <input type="hidden" value="" disabled="disabled"
												name="BusinessMovedTo" id="business-moved-field"></li>
											<li><label> <input type="radio" class=""
													value="temp_closed" name="biz_closed_moved"
													id="business-temp-closed-option"> 暫時關閉
											</label>
												<div class="business-date-picker hidden"
													id="js-business-date-picker">
													關閉至
													<div class="nested-icon-label date-picker">
														<i class="i ig-common i-calendar-gray-common"></i> <input
															type="text" value="" title="yyyy/mm/dd"
															name="BusinessTempClosed_month_day_year"
															id="BusinessTempClosed_month_day_year"
															data-date-format="yyyy/MM/dd" class="date-input ">
													</div>

												</div></li>
										</ul></li>

									<li class="is-dup-biz"><label for="isDupBusiness">
											<input type="checkbox" name="is_duplicate_business"
											id="isDupBusiness"> 此商店與另一在Yelp上的商店重複
									</label></li>

									<li class="biz-edit-description js-biz-description"><label
										for="biz_description" class="">請提供更多相關資料或內容去幫助我們核實此更改：</label>
										<span class="help-inline">可選擇填寫與否</span> <textarea
											id="biz_description" name="description"></textarea> <span
										class="info-field">&nbsp;</span></li>
								</ul>

								<div class="form-footer">
									<input type="hidden"
										value="http://zh.yelp.com.hk/biz/%E9%95%B7%E9%B4%BB%E5%B0%8F%E9%A4%A8-%E5%8F%B0%E5%8C%97%E5%B8%82%E5%A4%A7%E5%AE%89%E5%8D%80"
										name="return_url">
									<button class="ybtn ybtn-primary ytype" value="提交更改"
										type="submit" name="action_submit"
										id="submit-biz-details-changes">
										<span>提交更改</span>
									</button>
									<a
										href="http://zh.yelp.com.hk/biz/%E9%95%B7%E9%B4%BB%E5%B0%8F%E9%A4%A8-%E5%8F%B0%E5%8C%97%E5%B8%82%E5%A4%A7%E5%AE%89%E5%8D%80">取消</a>
								</div>

							</form>


						</div>
					</div>
				</div>
			</div>
		</div>

		<!-- google_ad_section_start(weight=ignore) -->
		<!-- <a href="/biz/outlook-autumn-market-fundamental-catwalk-flimsy-roost-legibility-individualism-grocer-predestination-2">yelp</a> -->
		[#include "/theme/yelp/common/footer.html"]


	</div>


	<script type="text/javascript">
		$(document).ready(function() {

			$("#province").change(function() {
				var s = $("#province").find("option:selected").text();
				//geowork(s);
			});

		});

		

	</script>


	<script type="text/javascript">
		function formatCurrency(value) {
			return "$" + value.toFixed(2);
		}
		var CartLine = function() {
			var self = this;
			self.category = ko.observable();
			self.product = ko.observable();

		};
		var DayTime =function(){
			var self = this;
			self.week= ko.observable();
			self.weekindex= ko.observable();
			self.minname=ko.observable();
			self.minindex=ko.observable();
			self.maxname=ko.observable();
			self.maxindex=ko.observable();
		};
		var Cart = function() {
			// Stores an array of lines, and from these, can work out the grandTotal
			var self = this;
			self.lines = ko.observableArray([ new CartLine() ]); // Put one line in by default
			self.days=ko.observableArray();
			self.grandTotal = ko.pureComputed(function() {
				var total = 0;
				$.each(self.lines(), function() {
					total += this.subtotal()
				})
				return total;
			});
			// Operations
			self.addLine = function() {
				self.lines.push(new CartLine());
			};
			self.removeLine = function(line) {
				self.lines.remove(line)
			};
			self.addDay = function() {
				var mday=new DayTime();
				mday.weekname=$("#weekday").find("option:selected").text();  //获取Select选择的Text
				mday.weekindex=$("#weekday").val();  //获取Select选择的Value
				mday.minname=$("#hours-start").find("option:selected").text();  //获取Select选择的Text
				mday.minindex=$("#hours-start").val();  //获取Select选择的Value
				mday.maxname=$("#hours-end").find("option:selected").text();  //获取Select选择的Text
				mday.maxindex=$("#hours-end").val();  //获取Select选择的Value
				
				self.days.push(mday);
				var mweekindex=parseInt(mday.weekindex)+1;
				if(mweekindex>6){
					mweekindex=0;
				}
				$("#weekday").val(mweekindex)
			};
			self.removeDay = function(day) {
				self.days.remove(day);
			};
			
			
		};
		ko.applyBindings(new Cart());
	</script>
	<script type="text/javascript">
		$(document).ready(function() {

			$('#star1').raty({
				path : '${siteurl}assets/plugs/raty/images',
				half : false,
				score : 5,
				starOff : 'star-off.png',
				starOn : 'star-on.png',
				space : false,
				target : '#descriptionscore',
				starHalf : 'star-half.png',
				targetKeep : true,
				targetType : 'score'
			});

			$("#newly-opened-biz").change(function() {

				if ($("#newly-opened-biz").is(':checked')) {
					$("#js-opening-date-element-div").show();
				} else {
					$("#js-opening-date-element-div").hide();
				}

			});

			$("#includes-review").change(function() {

				if ($("#includes-review").is(':checked')) {
					$("#review-widget-div").show();
				} else {
					$("#review-widget-div").hide();
				}

			});

			$("#opening_date_month_day_year").datetimepicker({
				datepicker : true,
				timepicker : false,
				format : 'Y-m-d',
				step : 15
			});

		});

		KindEditor.ready(function(K) {
			var editor = KindEditor.editor({
				allowFileManager : true,
				uploadJson : '${siteurl}/image/upimgwork.htm'
			});
			K('#image1').click(
					function() {
						editor.loadPlugin('image', function() {
							editor.plugin.imageDialog({
								imageUrl : K('#image').val(),
								clickFn : function(url, title, width, height,
										border, align) {
									K('#image').val(url);
									editor.hideDialog();
								}
							});
						});
					});
		});
	</script>
</body>


<script type="text/javascript">

// 百度地图API功能
var map = new BMap.Map("allmap");

function addponit(point){
	var marker = new BMap.Marker(point);
	map.addOverlay(marker);
}
// 编写自定义函数,创建标注
function addMarker(point) {
	var marker = new BMap.Marker(point);
	map.addOverlay(marker);
}

map.centerAndZoom(new BMap.Point(${shop.gps!"116.404, 39.915"}), 11);
var marker = new BMap.Marker(new BMap.Point(${shop.gps!"116.404, 39.915"}));
map.addOverlay(marker);
var top_left_control = new BMap.ScaleControl({
	anchor : BMAP_ANCHOR_TOP_LEFT
});// 左上角，添加比例尺
var top_left_navigation = new BMap.NavigationControl(); //左上角，添加默认缩放平移控件
var top_right_navigation = new BMap.NavigationControl({
	anchor : BMAP_ANCHOR_TOP_RIGHT,
	type : BMAP_NAVIGATION_CONTROL_SMALL
}); //右上角，仅包含平移和缩放按钮
/*缩放控件type有四种类型:
BMAP_NAVIGATION_CONTROL_SMALL：仅包含平移和缩放按钮；BMAP_NAVIGATION_CONTROL_PAN:仅包含平移按钮；BMAP_NAVIGATION_CONTROL_ZOOM：仅包含缩放按钮*/

//添加控件和比例尺
function add_control() {
	map.addControl(top_left_control);
	//map.addControl(top_left_navigation);
	map.addControl(top_right_navigation);
}
//移除控件和比例尺
function delete_control() {
	map.removeControl(top_left_control);
	map.removeControl(top_left_navigation);
	map.removeControl(top_right_navigation);
}
add_control();

// 添加带有定位的导航控件
var navigationControl = new BMap.NavigationControl({
	// 靠左上角位置
	anchor : BMAP_ANCHOR_TOP_LEFT,
	// LARGE类型
	type : BMAP_NAVIGATION_CONTROL_LARGE,
	// 启用显示定位
	enableGeolocation : true
});
map.addControl(navigationControl);
// 添加定位控件
var geolocationControl = new BMap.GeolocationControl();
geolocationControl.addEventListener("locationSuccess", function(e) {
	// 定位成功事件
	var address = '';
	address += e.addressComponent.province;
	address += e.addressComponent.city;
	address += e.addressComponent.district;
	address += e.addressComponent.street;
	address += e.addressComponent.streetNumber;
	//alert("当前定位地址为：" + address);
});
geolocationControl.addEventListener("locationError", function(e) {
	// 定位失败事件
	// alert(e.message);
});
map.addControl(geolocationControl);

var opts = {
	width : 250, // 信息窗口宽度
	height : 80, // 信息窗口高度
	title : "信息窗口", // 信息窗口标题
	enableMessage : true
//设置允许信息窗发送短息
};
var content = "门道网";
// marker.addEventListener("click",function(e){openInfo(content,e)});
function openInfo(content, e) {
	var p = e.target;
	var point = new BMap.Point(p.getPosition().lng, p.getPosition().lat);
	var infoWindow = new BMap.InfoWindow(content, opts); // 创建信息窗口对象 
	map.openInfoWindow(infoWindow, point); //开启信息窗口
}

// 创建地址解析器实例
function geowork() {
	var myGeo = new BMap.Geocoder();
	// 将地址解析结果显示在地图上,并调整地图视野
	myGeo.getPoint("高新一路", function(point) {
		if (point) {
			map.centerAndZoom(point, 16);
			//map.addOverlay(new BMap.Marker(point));
		}
	}, "西安市");
}
function geowork(city) {
	var myGeo = new BMap.Geocoder();
	// 将地址解析结果显示在地图上,并调整地图视野
	myGeo.getPoint(city, function(point) {
		if (point) {
			map.centerAndZoom(point, 10);
			//map.addOverlay(new BMap.Marker(point));
		}
	}, city);
}
function geoworkbyaddress(city,address) {
	var myGeo = new BMap.Geocoder();
	// 将地址解析结果显示在地图上,并调整地图视野
	myGeo.getPoint(address, function(point) {
		if (point) {
			map.centerAndZoom(point, 13);
			//map.addOverlay(new BMap.Marker(point));
		}
	}, city);
}
function golocal() {

	var geolocation = new BMap.Geolocation();
	geolocation.getCurrentPosition(function(r) {
		if (this.getStatus() == BMAP_STATUS_SUCCESS) {
			//var mk = new BMap.Marker(r.point);
			//map.addOverlay(mk);
			map.panTo(r.point);
			//alert('您的位置：'+r.point.lng+','+r.point.lat);
		} else {
			geowork();
		}
	}, {
		enableHighAccuracy : true
	})

}
var geoc = new BMap.Geocoder();
map.addEventListener("click", function(e) {

	$("#gps").val(e.point.lng + "," + e.point.lat);
	$("#longitude").val(e.point.lng + "");
	$("#latitude").val(e.point.lat + "");
	map.clearOverlays();
	var marker = new BMap.Marker(e.point); // 创建标注
	map.addOverlay(marker);
	marker.setAnimation(BMAP_ANIMATION_BOUNCE);
	geoc.getLocation(e.point, function(rs) {
		var addComp = rs.addressComponents;
		var addres = addComp.city + ""
				+ addComp.district + "" + addComp.street + ""
				+ addComp.streetNumber;
		$("#city").val(addComp.city);
	var add=$("#address").val();
	$("#address").val(addres);
	 if(add.length<=1){
	    $("#address").val(addres);
	    //$("#cityname").val(addComp.city);
		//$("#townname").val(addComp.district);
		//$("#townid").val(addComp.district);
	 }
		
	});
});

geowork();
</script>
</html>
